import stopRepeatClick from './utils/stopRepeatClick.js';

import Vue from 'vue'
import App from './App'
// import store from './store'
import store from '@/store/index.js'
Vue.prototype.$store = store
import common from '@/api/common'
import tools from "@/utils/tools.js"
import api from "@/api/api.js"
import {
	url
} from '@/api/url.js'

// 引入vuex工具
import vuexTool from 'vuex_tool'
Vue.use(vuexTool)

// 引入提供的vuex简写方法(@Copy By TuniaoUi)
let vuexStore = require('@/store/$tn.mixin.js')
Vue.mixin(vuexStore)


Vue.prototype.$stopRepeatClick = stopRepeatClick
Vue.prototype.$uploadUrl = 'https://yqpeisong.oss-cn-beijing.aliyuncs.com'
Vue.prototype.$tools = tools
Vue.prototype.$url = url
Vue.prototype.$api = api
Vue.config.productionTip = false

App.mpType = 'app'

const app = new Vue({
	...App,
	store
})
app.$mount()

//uview-ui
import uView from '@/uni_modules/uview-ui';
Vue.use(uView);
Vue.prototype.$common = common;